<style>
.align_middle{margin-top:15px; margin-left:15px;text-align:center;}
</style>	
	<div class="right_side_title right align_middle">
		 <?php 
		 $user=$session->read('User');
		 if($user['isadmin']||$user['isvisitor']){
			$grouplist=array_merge(array(""=>"请选择模块"),$grouplist);
	    	echo $form->select('ddlgroup',$grouplist, $group_mod_id, null,null);
		 }
	     ?>
	</div>  	
	
	<script>
$(document).ready(function() {
	$("#ddlgroup").change(function(){
		searchtech();
		});

});

function searchtech()
{
	var str1=new Array();
	var str2=new Array();
	var sort=$("#sort").html();
	var newstr="";
	var url_before=window.location.href;
	str1=url_before.split('companys/');
	str2=str1[1].split('?');
	if(str2[1]!=null){
		newstr=str2[1].replace("seach=all&","");
	}

	var webpath=$("#getpath").attr('href');
	var urlpath=webpath+"companys/"+str2[0]+"?seach=all&";
	var group=$("#ddlgroup").val();

	if(newstr.indexOf('group')<0){
		if(group==""){
			location.href=urlpath+newstr;
		}else{
			if(group!=""){
				urlpath+=newstr+"&group="+group;
				}
			location.href=urlpath;
		}
	}else{
		beforegroup="<?php echo $group_mod_id ?>";
		if(group!=""){
			newstr=newstr.replace("group="+beforegroup,"group="+group);
		}
		location.href=urlpath+newstr;


		}

	
	return false;

}


</script>

	